package io.gitee.zhangbinhub.admin.oauth.base;

import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

public abstract class BaseTreeEntity<T extends BaseTreeEntity<T>> {
    @ApiModelProperty(name = "上级ID")
    private String parentId = "";

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @ApiModelProperty(name = "子列表")
    private List<T> children = new ArrayList<T>();
}
